package com.yedean.mall.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yedean.mall.entity.UmsAdmin;
import com.yedean.mall.entity.UmsRole;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * <p>
 * 后台用户表 服务类
 * </p>
 *
 * @author yedean
 * @since 2022-08-03
 */
public interface IUmsAdminService extends IService<UmsAdmin> {

    /**
     * 修改用户角色关系
     */
    @Transactional
    void updateRole(Long adminId, List<Long> roleIds);


    /**
     * 获取用户对应的角色
     */
    List<UmsRole> getRoleList(Long adminId);

}
